<?php
class member_model extends CI_Model{
    public function __construct()
    {
        //$this->load->database();
    }
    public function get_members($flag = false)
    {
        if($flag === false)
        {
            $query = $this->db->select("*")->from('member')->where(array('status'=>1))->get();
            return $query->result_array();
        }

        $query = $this->db->get_where('member', array('status' => 0));
        return $query->row_array();
    }
}
?>